home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>Exposing Style Sheets in IE4</TITLE>
-
- <STYLE>
- DT { padding-top: 12; }
- FONT { font-family: arial, helvetica, sans-serif; }
- .layer { position: absolute; }
- #banner { background-color: yellow; }
- </STYLE>
- </HEAD>
-
- <BODY ID=body STYLE="background-color: white; font-size: 12pt;">
- <BLOCKQUOTE>
-
- <P><IMG ID=arrow SRC="arrow.gif" STYLE="border: 0;">
-
- <DIV ID=banner CLASS=layer STYLE="color: blue; left: 72; top: 15;">
- <FONT CLASS=pageTitle SIZE=+2>
- Exposing Style Sheets in IE4
- </FONT>
- </DIV>
-
- <BR><BR>
- Each page element object contains a <TT>style</TT> object
- that reflects the inline styles applied to that element object.
- The following are the style properties reflected into style
- objects for some of the elements on this page:</P>
-
- <BLOCKQUOTE><DL>
- <SCRIPT>
- document.writeln("<DT><B>BODY</B></DT>");
- document.writeln("<DD><B>background-color:</B> ");
- document.writeln(document.all.body.style.backgroundColor);
- document.writeln("</DD>");
- document.writeln("<DD><B>font-size:</B> ");
- document.writeln(document.all.body.style.fontSize);
- document.writeln("</DD>");
-
- document.writeln("<DT><B>DIV</B></DT>");
- document.writeln("<DD><B>color:</B> ");
- document.writeln(document.all.banner.style.color);
- document.writeln("</DD>");
- document.writeln("<DD><B>left:</B> ");
- document.writeln(document.all.banner.style.left);
- document.writeln("</DD>");
- document.writeln("<DD><B>top:</B> ");
- document.writeln(document.all.banner.style.top);
- document.writeln("</DD>");
-
- document.writeln("<DT><B>IMG</B></DT>");
- document.writeln("<DD><B>border:</B> ");
- document.writeln(document.all.arrow.style.border);
- document.writeln("</DD>");
-
- </SCRIPT>
- </DL></BLOCKQUOTE>
-
- </BLOCKQUOTE>
- </BODY>
- </HTML>
-